package com.zk.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

@Data
@Document("order") //设置文档所在的集合
public class MongoDBOrder implements Serializable {
    @Id
    private String _id;
    private String user_name;
    private String order_time;
    private double order_price;
    private int isDel;
    private List<MongoDBOrderDetail> detail;

}
